git archive
命令手册Create an archive of files from a named tree. More information: https://git-scm.com/docs/git-archive.
git archive --verbose HEAD
git archive --verbose --format=zip HEAD
git archive --verbose --output={{path/to/file.zip}} HEAD
git archive --output={{path/to/file.tar}} {{branch_name}}
git archive --output={{path/to/file.tar}} HEAD:{{path/to/directory}}
git archive --output={{path/to/file.tar}} --prefix={{path/to/prepend}}/ HEAD